package com.woniu.zsd.merchant.util;

public class RedisKey {
    public static String SITE_ALL_KEY(){
        return "site:all:";
    };

    public static String ADMIN_ACCESS_TOKEN_KEY(Integer Id, Integer Role) {
        return "user:access:id" + Id + ",role:access:role" + Role;
    }
    public static String ADMIN_REFRESH_TOKEN_KEY(String access){
        return "user:refresh:access:" + access;
    };

    public static String USER_ACCESS_TOKEN_KEY(String Id){
        return "user:access:id" + Id;
    };


    public static String USER_REFRESH_TOKEN_KEY(String access){
        return "user:refresh:access:" + access;
    };

    //聊天记录存储发送人到接收人的信息
    public static String TALK_USER_ADMIN_KEY(String userId, String adminId){
        return "talk:userId:" + userId + ":adminId:" + adminId;
    }

    //聊天记录存储接收人到发送人的信息
    public static String TALK_ADMIN_USER_KEY(String userId, String adminId){
        return "talk:adminId:" + adminId + ":userId:" + userId;
    }

}
